

<%@ page import="union.Contrato" %>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'contrato.label', default: 'Contrato')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav" role="navigation">

		<ul class="nav nav-pills">
			<g:permissao devePossuir="true"
				controles="contrato" acoes="list">
				<li><g:link class="list" action="list">
						<i class="icon-list-alt"></i>
						<g:message code="default.list.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
			<li class="divider-vertical"></li>
			<g:permissao devePossuir="true"
				controles="contrato" acoes="create">
				<li><g:link action="create">
						<i class="icon-file"></i>
						<g:message code="default.add.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
		</ul>







	</div>
	<div id="show-contrato"
		class="content scaffold-show" role="main">
		<legend>
			<g:message code="default.show.label" args="[entityName]" />
		</legend>
		<mensagem:renderizar mensagem="${flash}" />
		<ol class="property-list contrato">
			
				<g:if test="${contratoInstance?.acompanhamentos}">
				<p class="muted">
					<span id="acompanhamentos-label" class="property-label"><g:message code="contrato.acompanhamentos.label" default="Acompanhamentos" />:</span>
					
						<g:each in="${contratoInstance.acompanhamentos}" var="a">
						<strong><g:link controller="acompanhamento" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></strong>
						</g:each>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.avaliacao}">
				<p class="muted">
					<span id="avaliacao-label" class="property-label"><g:message code="contrato.avaliacao.label" default="Avaliacao" />:</span>
					
						<strong><g:link controller="avaliacao" action="show" id="${contratoInstance?.avaliacao?.id}">${contratoInstance?.avaliacao?.encodeAsHTML()}</g:link></strong>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.avaliado}">
				<p class="muted">
					<span id="avaliado-label" class="property-label"><g:message code="contrato.avaliado.label" default="Avaliado" />:</span>
					
						<strong><g:link controller="colaborador" action="show" id="${contratoInstance?.avaliado?.id}">${contratoInstance?.avaliado?.encodeAsHTML()}</g:link></strong>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.competenciasContrato}">
				<p class="muted">
					<span id="competenciasContrato-label" class="property-label"><g:message code="contrato.competenciasContrato.label" default="Competencias Contrato" />:</span>
					
						<g:each in="${contratoInstance.competenciasContrato}" var="c">
						<strong><g:link controller="competenciasContrato" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></strong>
						</g:each>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.data}">
				<p class="muted">
					<span id="data-label" class="property-label"><g:message code="contrato.data.label" default="Data" />:</span>
					
						<strong><g:formatDate date="${contratoInstance?.data}" /></strong>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.gestor}">
				<p class="muted">
					<span id="gestor-label" class="property-label"><g:message code="contrato.gestor.label" default="Gestor" />:</span>
					
						<strong><g:link controller="colaborador" action="show" id="${contratoInstance?.gestor?.id}">${contratoInstance?.gestor?.encodeAsHTML()}</g:link></strong>
					
				</p>
				</g:if>
			
				<g:if test="${contratoInstance?.indicadorResultadoContrato}">
				<p class="muted">
					<span id="indicadorResultadoContrato-label" class="property-label"><g:message code="contrato.indicadorResultadoContrato.label" default="Indicador Resultado Contrato" />:</span>
					
						<g:each in="${contratoInstance.indicadorResultadoContrato}" var="i">
						<strong><g:link controller="indicadorResultadoContrato" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></strong>
						</g:each>
					
				</p>
				</g:if>
			
		</ol>
		<g:form>
			<fieldset class="buttons">
				<g:hiddenField name="id" value="${contratoInstance?.id}" />
				<button type="submit" name="_action_edit" class="btn"
					value="${message(code: 'default.button.update.label', default: 'Update')}">
					<i class="icon-ok"></i> Editar
				</button>

				<button type="submit" name="_action_delete" class="btn"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Tem certeza que deseja remover?')}');">
					<i class="icon-trash"></i> Remover
				</button>
			</fieldset>
		</g:form>
	</div>
</body>
</html>
